<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Edición de Rol</title>
    </head>
    <body>
        <f:view>
            <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            <h1>Edición de Rol</h1>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="IdRol:"/>
                    <h:outputText value="#{rol.rol.idRol}" title="IdRol" />
                    <h:outputText value="Descripcion Rol:"/>
                    <h:inputText id="descripcionRol" value="#{rol.rol.descripcionRol}" title="Descripcion Rol" required="true" requiredMessage="The descripcionRol es requerido." />
                    <h:outputText value="PermisorolCollection:"/>
                    <h:outputText escape="false" value="#{rol.asString[rol.permisorolCollectionOfRol]}" title="PermisorolCollection" />
                </h:panelGrid>
                <br />
                <h:commandLink styleClass="boton" action="#{rol.edit}" value="[Guardar]">
                    <f:param name="jsfcrud.currentRol" value="#{rol.asString[rol.rol]}"/>
                </h:commandLink>
                <h:commandLink styleClass="boton" action="#{rol.detailSetup}" value="[Ver]" immediate="true">
                    <f:param name="jsfcrud.currentRol" value="#{rol.asString[rol.rol]}"/>
                </h:commandLink>
                <h:commandLink styleClass="boton" action="#{rol.listSetup}" value="[Listar]" immediate="true"/>
                <br />
                <a href="/sistemaReserva/faces/welcomeJSF.jsp">Indice</a>
            </h:form>
        </f:view>
    </body>
</html>
